@extends('layout.home')
@section('title','发布Center')
@section('content')	
<div class="aw-container-wrap">
    <div class="container">
        <div class="row">
            <div class="aw-content-wrap clearfix">
             @foreach($res as $k=>$v)
                <div class="col-sm-12 col-md-9 aw-main-content aw-article-content">
                    <div class="aw-mod aw-question-detail">
                        <div class="mod-head">
						<div class="biaoboxs pull-right hidden-xs"></div>
                            <h1>{{$v->title}}</h1>
                           <div class="operate clearfix"></div>
                        </div>
                        <div class="mod-body">
                            <div class="content markitup-box">{{$v->message}}</div>
                            <div class="meta clearfix">
                                <div class="aw-article-vote pull-left disabled">
                                    <a href="javascript:;" class="agree" onclick="AWS.User.article_vote($(this), 1, 1);"><i class="icon icon-agree"></i> <b>0</b></a>
                                      </div>
                                       <span class="pull-right  more-operate">
                                 <em class="text-color-999">{{Date('Y-m-d',time())}}</em>
                                </span>
                            </div>
                        </div>
                    </div>
                </div>
                @endforeach
                <!-- 侧边栏 -->
                <div class="col-sm-12 col-md-3 aw-side-bar hidden-sm hidden-xs">
                    <!-- 发起人 -->
                                        <div class="aw-mod user-detail">
                        <div class="mod-head">
                            <h3>发起人</h3>
                        </div>
                        <div class="mod-body">
                            <dl>
                                <dt class="pull-left aw-border-radius-5">
                                    <a href="http://localhost/test3/?/people/admin"><img alt="admin" src="http://localhost/test3/uploads/avatar/000/00/00/01_avatar_mid.jpg" /></a>
                                </dt>
                                <dd class="pull-left">
                                    <a class="aw-user-name" href="http://localhost/test3/?/people/admin" data-id="1">admin</a>
                                    
                                                                        <p></p>
                                </dd>
                            </dl>
							<ul style="font-size:12px;"> 
                            <li><i class="icon icon-prestige"></i> 威望 : <em class="aw-text-color-orange">0</em></li>
                            <li><i class="icon icon-score"></i> 积分 : <em class="aw-text-color-orange">{{rand(1000,2000)}}</em></li>
                            <li><i class="icon icon-user" style="font-size:14px;"></i> 粉丝 : <em class="aw-text-color-orange">2</em></li>
                            </ul>
                        </div>
                        <div class="mod-footer clearfix">
                                                    </div>
                    </div>
                                        <!-- end 发起人 -->

                    
                                    </div>
                <!-- end 侧边栏 -->
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    var ANSWER_EDIT_TIME = 30;

    $(document).ready(function () {
        if ($('.aw-article-vote.disabled').length)
        {
            $('.aw-article-vote.disabled a').attr('onclick', '');
        }

        AWS.at_user_lists('#wmd-input');

        AWS.Init.init_article_comment_box($('.aw-article-comment'));
    });
</script>


@endsection